import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2023-03-29
 * Time: 16:40
 */
public class test09 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String str1;
        while ((str1 = reader.readLine()) != null){
            char[] a = str1.toCharArray();
            int start = 0;
            int end = str1.length() - 1;
            while (start < end){
              char tmp = a[start];
              a[start] = a[end];
              a[end] = tmp;
              start++;
              end--;
            }
            System.out.println(a);
        }
    }
}
